{% extends "contest/base.html" %}
{% load i18n %}
{% block title %}
    Competitors
{% endblock %}

{% block content %}
    {% if competitor_list %}
    <table class="ranking">
        <tr>
            <th class="numbers">{% trans "Number" %}</th>
            <th class="names">{% trans "Name" %}</th>
            <th class="numbers">{% trans "Score" %}</th>
        </tr>
    {% for competitor in competitor_list %}
        <tr class="{% cycle 'alt' 'normal' %}">
            <td class="numbers">{{competitor.number}}</td>
            <td class="names"><a href="{% url competitor competitor.id %}">
                {{competitor.name}} {{competitor.surname}}</a></td>
            <td class="numbers">{{competitor.score}}</td>
        </tr>
    {% endfor %}
    </table>
    {% else %}
        <p>No Competitor found</p>
    {% endif %}
{% endblock %}

